package jp.co.neosystem.s2wg.util;

import java.util.Comparator;
import java.util.Date;

import jp.co.neosystem.s2wg.dto.flex.WorkSheet;

public class WorkSheetComparator implements Comparator<WorkSheet> {

	@Override
	public int compare(final WorkSheet arg1, final WorkSheet arg2) {
		final Date date1 = arg1.getBaseDate();
		final Date date2 = arg2.getBaseDate();
		
		return date1.compareTo(date2);
	}

}
